#!/usr/bin/python -tt

from nMedia import nMedia
nMedia = nMedia(debug=True)
Content = nMedia.Content

print " * * * * * * Testing content"
Content.AddContent({'title':"Goats2",'rating':5.3})
#c.AddContent("Transformers",{'rating':5.3})

print " * * * * * * Testing SearchMovie"
for r in nMedia.MovieSearch("Transformers"):
	print r


print " * * * * * * Adding movie with details"
#Add movie to database
x = nMedia.MovieSearch("Transformers")[0]
#pretend x = 1

cId = Content.AddContent({'title':"Goats"})
print "TOYING WITH CONTENT ID : ",cId
#cId = Content.AddContent(nMedia.MovieDetails(1))
Content.AddUrl(cId,"http://www.themoviedb.org/movie/2206")
nMedia.UpdateDetails(cId)


print " * * * * * * Printing content"
Content.PrintContent()
